package ystr

import "strings"

func PadLeftSpace(s string, length int) string {
	return PadLeft(s, " ", length)
}
func PadLeft(s string, pad string, length int) string {
	if len(s) >= length {
		return s
	}
	return strings.Repeat(pad, length-len(s)) + s
}

func PadRightSpace(s string, length int) string {
	return PadRight(s, " ", length)
}
func PadRight(s string, pad string, length int) string {
	if len(s) >= length {
		return s
	}
	return s + strings.Repeat(pad, length-len(s))
}
